package com.redoor.app.stake.basicdata.dao;

import com.redoor.app.stake.basicdata.model.BaseRegistration;
import com.redoor.app.stake.basicdata.model.controllerModel.BaseRegistrationCriteria;
import com.redoor.app.stake.basicdata.model.serviceModel.BaseRegistrationServiceBean;
import com.redoornetwork.framework.mybatis.mapper.Mapper;
import com.yotouch.app.stake.model.Registration;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseRegistrationMapper extends Mapper<BaseRegistration> {

    /**
     * 批量创建注册码
     * @param list
     * @return
     */
    public int insertBatch(List<BaseRegistration> list);

    /**
     * 查询注册码列表
     * @param criteria
     * @return
     */
    public List<BaseRegistration> queryRegistration(BaseRegistrationCriteria criteria);
    /**
     * 注册码展示页面数据
     * @Author zhangYiHang
     * @Date 2018/3/15 20:13
     */
    List<BaseRegistrationServiceBean> qryRegistrationList(BaseRegistrationCriteria criteria);
    /**
     * 注册码展示页面数据总数
     * @Author zhangYiHang
     * @Date 2018/3/15 20:13
     */
    int qryRegistrationTotal(BaseRegistrationCriteria criteria);

    public List<Registration> queryHsfRegistration(@Param(value = "registrationApplyUuid") String registrationApplyUuid);
}